import pandas as pd
import torch
if __name__ == '__main__':
    file_prefix = 'cancer'
    data = pd.read_excel(file_prefix + '_data.xlsx')
    label = pd.read_excel(file_prefix + '_label.xlsx', header=None)
    X = torch.tensor(data.values)
    print('shape of X', X.shape)
    label = pd.get_dummies(label[0]) # two classes, using one hot encoding
    y = torch.tensor(label.values) 
    print('shape of y', y.shape)
